package cn.dw.service.impl;

import cn.dw.dao.PointDao;
import cn.dw.domain.Point;
import cn.dw.service.PointService;

import java.util.List;

public class PointServiceImpl
  implements PointService
{
  private PointDao ptd;
  
  public List<Point> getAll()
  {
    return this.ptd.getAll();
  }
  
  public void setPtd(PointDao ptd)
  {
    this.ptd = ptd;
  }
  
  public void save(Point point)
  {
    this.ptd.save(point);
  }
  
  public void update(Point point)
  {
    this.ptd.update(point);
  }
  
  public Point getById(Integer id)
  {
    return (Point)this.ptd.getById(id);
  }
}
